Skip to content

[AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM: add DEP2 (MegaMoE) concurrency 128-384, with UMBP KV offloading at 256 and 384 / [AMD][AgentX] DeepSeek-V4.1-Flash MI355X vLLM:新增 DEP2(MegaMoE)并发 128–384 点,256、384 启用 UMBP KV offloading - #5098

Open
Fangzhou-Ai wants to merge 5 commits into
mainfrom
amd-agentx-dsv41-flash-dep2

Conversation

@Fangzhou-Ai

Copy link
Copy Markdown
Collaborator

Adds DEP2 points for DeepSeek-V4.1-Flash FP4 AgentX on MI355X (vLLM) at concurrency 128, 256 and 384, so DEP2 can be compared head to head with the DP2 points in #5036 (MoE tensor-parallel across the two ranks, called DPATP2 here). Both keys run two GPUs per server with attention DP2. The only differences are the MoE parallelism and backend: DEP2 adds enable-expert-parallel with AITER MegaMoE over MoRI (moe-backend aiter_mega_moe, all2all-backend mori), where the DP2 key keeps the MoE tensor-parallel. The new config key is dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2, so no existing key reruns.

Everything else is copied from #5036's DP2 points: the image nightly-60bd6dd2 (digest sha256:67a3a0fb7989…, which carries #64715 UMBP, #66036 fp8 KV, #66644 MegaMoE and #67377 FlyDSL GEMMs), vllm-router 0.1.14 with consistent_hash, prefill-schedule-interval 11, max-num-batched-tokens 16384, cudagraph capture up to 1024, kv-cache-dtype fp8_e4m3, no --monokernel, Engram tables in host memory, and the same KV policy: c128 without offloading and c256/c384 with UMBP (the same 449 GB node-local umbp_standalone_server pool, host-directory socket mount and UMBPStoreConnector standalone settings, with kv_load_failure_policy: recompute). The two MegaMoE-specific additions are MORI_SHMEM_HEAP_SIZE: 64G (the value the DEP8 points use) and VLLM_RANDOMIZE_DP_DUMMY_INPUTS: 1.

Draft: nothing here has been swept. No CI run and no run link yet, and I have not yet run this exact recipe on a node.

What I checked locally

Risks and open items

Change details
中文

为 MI355X 上的 DeepSeek-V4.1-Flash FP4 AgentX(vLLM)新增 DEP2 点位,并发 128、256 和 384,以便与 #5036 中的 DP2 点位(MoE 在两个 rank 间做张量并行,这里称为 DPATP2)直接对比。两个 key 都是每个服务器两张 GPU、attention DP2,唯一区别是 MoE 的并行方式与后端:DEP2 增加 enable-expert-parallel,并使用基于 MoRI 的 AITER MegaMoE(moe-backend aiter_mega_moe、all2all-backend mori),而 DP2 key 保持 MoE 张量并行。新增配置 key 为 dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2,因此不会重跑任何已有 key。

其余设置均与 #5036 的 DP2 点位一致:镜像 nightly-60bd6dd2(digest sha256:67a3a0fb7989…,包含 #64715 UMBP、#66036 fp8 KV、#66644 MegaMoE、#67377 FlyDSL GEMM)、vllm-router 0.1.14(consistent_hash)、prefill-schedule-interval 11、max-num-batched-tokens 16384、cudagraph 捕获上限 1024、kv-cache-dtype fp8_e4m3、不使用 --monokernel、Engram 表放在主机内存,以及相同的 KV 策略:c128 不卸载,c256/c384 使用 UMBP(同样的 449 GB 节点本地 umbp_standalone_server 池、主机目录 socket 挂载和 UMBPStoreConnector standalone 配置,kv_load_failure_policy: recompute)。MegaMoE 相关的两处新增是 MORI_SHMEM_HEAP_SIZE: 64G(与 DEP8 点位相同)和 VLLM_RANDOMIZE_DP_DUMMY_INPUTS: 1。

草稿:尚未运行任何 sweep。 目前没有 CI 运行,也没有运行链接,这套配方也还没有在节点上实际运行过。

本地已检查

风险与待办

AI model disclosure

Claude Sonnet 5.5 (claude-sonnet-5-5), run through Claude Code, prepared the config and recipe changes and wrote this description. No delegated agents.

🤖 Generated with Claude Code

…256 and c384, with UMBP KV offloading at 256 and 384

Attention DP2 with the MoE expert-parallel across both ranks on AITER MegaMoE over MoRI.
Image, router, scheduler, UMBP service and every other engine setting are those of the DP2
(MoE tensor-parallel) points in the UMBP key, so the two keys differ only in the MoE
parallelism and backend.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@Fangzhou-Ai Fangzhou-Ai added the non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) label Nov 16, 2026
@Fangzhou-Ai
Fangzhou-Ai marked this pull request as ready for review November 16, 2026 15:26
@Fangzhou-Ai
Fangzhou-Ai requested a review from a team November 16, 2026 15:26
@claude

claude Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Fangzhou-Ai's task in 39s —— View job


LGTM - no blocking issues found

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment on lines +294 to +311
# the one place the UMBP server and the engine workers both see its sockets.
container_mounts: &dep2_umbp_host_dir
/dev/shm: /umbp-host
frontend: &dep2_router
type: vllm-router
args:
policy: consistent_hash
prometheus-host: 127.0.0.1
prometheus-port: 18000
request-timeout-secs: 14400
disable-retries: true
setup_script: vllm-router.sh
services: &dep2_umbp_server
- name: umbp-server
type: generic
start: before_workers
critical: true
preamble: mkdir -p /umbp-host/umbp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 The c256 and c384 UMBP points can fail on a node when an earlier job there ran as a different user. Each job leaves a directory and socket under the host's /dev/shm, and nothing removes them. mkdir -p /umbp-host/umbp keeps the old 0755 directory, so the new owner cannot create the socket. The server then never logs the readiness line. Fix: give each job its own socket directory and remove it when the job ends, for example with a trap or a host-setup teardown. Both the server command and the kv-transfer-config endpoint must point to that directory.

Why this was flagged

The two UMBP overrides bind the host's /dev/shm to /umbp-host (agentic.yaml:295-296). The umbp-server preamble then runs mkdir -p /umbp-host/umbp (agentic.yaml:311), and the server binds a fixed path, unix:///umbp-host/umbp/standalone.grpc.sock (agentic.yaml:316). mi355x-amds runs with --container-remap-root (runners.yaml:802), so the directory belongs on the host to whoever submitted the job, and umask 022 makes it 0755. Nothing removes it: the recipe has no teardown, and hooks/mi355x-amds/setup.sh does not touch /dev/shm. Suppose a later c256 or c384 job lands on the same node under a different host uid. In that case mkdir is a no-op, the server cannot create or unlink its socket, and [StandaloneServer] listening never appears. With critical: true, the point then fails after up to the 1800 s readiness timeout, and keeps failing on that node until someone clears /dev/shm. On the base branch, no recipe writes host-side state there.

Verification: agentic.yaml:295-296 binds the host's /dev/shm to /umbp-host. agentic.yaml:311 runs mkdir -p /umbp-host/umbp. On a second job, -p succeeds silently on an existing directory and does not change its owner or mode. configs/runners.yaml:802 sets --container-remap-root. Nothing removes the directory or socket. The base has no umbp-host or /dev/shm use anywhere.

Comment on lines +288 to +291
# DEP2: attention DP2 with the MoE expert-parallel across both ranks, on AITER MegaMoE over
# MoRI. The topology, router, scheduler and engine settings are those of the DP2 points
# (MoE tensor-parallel across both ranks) in the UMBP key, so a pair of runs differs only
# in the MoE parallelism and backend.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 (optional) Maintainers get new comments that break the mandatory AGENTS.md comment rules, and some point at DP2 points and a key that do not exist on this base. The comment at agentic.yaml:288-291 is a header describing the topology and override. So is the comment at amd-master.yaml:941-945. The "tuned without mono decode" lines are history about other points. Fix: delete both headers and reword the monokernel lines as a short reason for monokernel: null, which covers the 4 sites listed. Same pattern at 4 sites (agentic.yaml:288, agentic.yaml:345, agentic.yaml:387, amd-master.yaml:941). [also at: inferencex-e2e/configs/amd-master.yaml:945 - Maintainers get new header and provenance comments that the mandatory AGENTS.md comment rules forbid. The block above dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep2 (amd-master.yaml:941-945) describes the key, its topology and where its settings came from.]

Why this was flagged

AGENTS.md "Comments (mandatory, every file)" bans header comments that describe a file, topology, config, recipe, override or section. It also bans history such as where code came from or past results. The new block at agentic.yaml:288-291 opens with "# DEP2: attention DP2 with the MoE expert-parallel..." above override_dep2_umbp_c256. amd-master.yaml:941-945 opens with "# DEP2 on two GPUs per server..." above the new key. agentic.yaml:345 and :387 say "The DP2 points were tuned without mono decode." Both headers and those lines describe things by reference to the DP2 points of key dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp. Neither that key nor any override_dp2_* override exists in this checkout; a repo-wide grep finds the name only in these new comments and the changelog. Readers are pointed at configs that are not there.

Verification: AGENTS.md:54-57 says: "No header comments describing a file, topology, config, recipe, override, or section." agentic.yaml:288-291 and amd-master.yaml:941-945 are such headers. agentic.yaml:343 and :387 say "# The DP2 points were tuned without mono decode." The referenced points and key do not exist on this base.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@Fangzhou-Ai Fangzhou-Ai added non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) and removed non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim) labels Nov 16, 2026
Fangzhou-Ai and others added 3 commits November 17, 2026 01:37
…ation 0.9 fits

The sweep failed at c256 and c384 in init_device: free memory on startup was 216-218 GiB
against 259.19 GiB requested (0.9 of 288 GiB) because the 64G MoRI symmetric heap is already
allocated. 16G is vLLM's MegaMoE default for this model and covers the 8 GB MegaMoEV2 needs
with a fused shared expert.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Resolve the perf-changelog.yaml conflict by keeping main's new entries and appending this PR's entry last.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>
Keep main's new perf-changelog entries and append this PR's entry last.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Fangzhou Ai <fangzhou.ai@amd.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-canary-full-sweep-enabled Run the full sweep without the canary gate (full search space, no trim)

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant